package com.itogis.interceptors.autoExportExcel;

import java.sql.Connection;
import java.sql.DriverManager;

public class aaaa {
	public static Connection getJdbcConnection() throws Exception {
		String dbAddress = "";
		String dbUserName = "";
		String DBpass = "";
		String driver = "";
		dbAddress = "jdbc:oracle:thin:@135.224.83.170:1521:edwprd1";
		dbUserName = "xjdw";
		DBpass = "11111111";
		driver = "oracle.jdbc.driver.OracleDriver";
		Connection conn = null;
		try {
			Class.forName(driver);
			conn = DriverManager.getConnection(dbAddress, dbUserName, DBpass);
		} catch (Exception e) {
			throw new Exception(e);
		}
		return conn;
	}
	/**
	 * @param args
	 */
	public static void main(String[] args) {		
		aaaa a= new aaaa();
		try {
			a.getJdbcConnection();
			System.out.println("成功:eeeeeeeeeeeeeeeeeeee");
		} catch (Exception e) {
			System.out.println("错误:"+e.getMessage());
			e.printStackTrace();
		}
	}

}
